#!/bin/bash

#下载
wget https://nginx.org/download/nginx-1.21.6.tar.gz

#解压
tar -xzvf nginx-1.21.6.tar.gz

##安装工具
yum -y install gcc pcre pcre-devel openssl \
openssl-devel gd gd-devel perl perl-ExtUtils-Embed


##编译 安装
cd nginx-1.21.6

./configure --prefix=/usr/local/nginx \
--with-http_ssl_module 

make && make install